package pl.edu.agh.student.logic.dao;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.Query;

import org.jboss.seam.annotations.Name;

import pl.edu.agh.student.model.BikObligation;

@Stateless
@Name("bikDao")
public class BikObligationDaoImpl extends GenericDaoImpl<BikObligation>
		implements BikObligationDao {

	public List<BikObligation> findAll() {
        final Query query = entityManager.createQuery("select bo from BikObligation bo");
        return query.getResultList();
	}

}
